#ifndef _PROMISE_H_
#define _PROMISE_H_

void * new_promise(void (* func)(void *, void *), void * param);
void * then_promise(void * promise, void (* func)(void *, void *));
void then_free_promises(void * promise);
void resolve_promise(void * promise, void * result);

#endif
